import { getMerchant } from '@/api/commodiSettle'
import { getcommolist } from '../../../api/commodiSettle'
export default {
  namespaced: true, // 封闭
  state: {},
  mutations: {},
  getters: {},
  actions: {
    async getMerchant(context, payload) {
      try {
        const { data } = await getMerchant(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
    async getcommolist(context, payload) {
      try {
        const { data } = await getcommolist(payload)
        //console.log(data)
        return data
      } catch (err) {
        console.log(err)
      }
    },
  }
}